<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
    <%@include file="/view/common/common.jsp"%>
    <script type="text/javascript">
        function searchData() {
            $('#tab').datagrid('load',serializeForm($('#mySearchForm')));
        }

        function formatContent(value, row) {
        	return '<div style="width=100px;word-break:break-all; word-wrap:break-word;white-space:pre-wrap;">'+value+'</div>';
        }

        function loadSMSCalendarYMD() {
            WdatePicker({dateFmt:"yyyy-MM-dd"});
        }

    </script>

</head>
<body>

<div class="easyui-panel"  fit="true">
    <div id="jqueryToolbar" style="padding:auto;height:auto">
        <div style="margin-top:5px; padding-bottom:8px; border-bottom:1px solid #ccc;">
            <form id="mySearchForm" action="" method="Post">
           		手机号:<input type="text" id="phone" name="phone" class="easyui-textbox"  style="width: 90px; height: 25px;"/>
      			uid:<input type="text" id="uid" name="uid" class="easyui-textbox"  style="width: 90px; height: 25px;"/>
                <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="searchData()">查询</a>
            </form>
        </div>
    </div>

    <table id="tab" class="easyui-datagrid"  fit="true" style="height:355px;width:auto" url="${ctx}/TComplaint/getTComplaintList.do"
           rownumbers="true" pagination="true" pagePosition="top" singleSelect="true">
        <thead>
        <tr>
            <th field="nick_name"  width="80" align="center">昵称</th>
            <th field="user_id"  width="80" align="center">用户ID</th>
            <th field="uid"  width="80" align="center">uid</th>
            <th field="phone" width="130" align="center">手机号</th>
            <th field="content"  width="400" align="center" data-options="formatter:formatContent" >内容</th>
            <th field="create_time"  width="135" align="center">创建时间</th>
        </tr>
        </thead>
    </table>

</div>
</body>
</html>
